﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InterviewQuestionModify.aspx.cs"
    Inherits="BOH.AccreditationSystem.InterviewQuestionModify" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>
<script>
    $(document).ready(function() {
        changestatus(document.getElementById("ckbCommon"));
    });

    function changestatus(obj) {
        if (obj) {
            if (obj.checked) {
                $("#drpSpeciality").attr("value", "-1");
                $("#drpSpeciality").attr("disabled", "disabled");
            }
            else {
               $("#drpSpeciality").attr("disabled", "");
            }   
        }
    }
    
    function Onchange(val,otherOject)
    {
        if(val.length!=0)
        {
        
            document.getElementById(otherOject).options[0].selected=true;
        }
    }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">评审管理系统</a> >> 面试试题编辑
    </div>
    <div id="bodyDiv">
        <center>
            <table width="90%" style="margin-top: 15px" class="Grid">
               <%-- <tr class="ARow">
                    <td align="right" width="15%">
                        试题名称&nbsp;
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtQuestionTitle" runat="server" width="90%"></asp:TextBox>
                    </td>
                </tr>--%>
                <tr class="ARow">
                    <td align="right">学科组&nbsp;</td>
                    <td align="left" colspan="3">
                        <asp:DropDownList ID="drpSubject" runat="server" OnSelectedIndexChanged="drpSubject_SelectedIndexChanged"
                                AutoPostBack="true"></asp:DropDownList>
                    </td>
                    
                </tr>
               <%-- <tr class="ARow">
                    <td align="right">
                        共通题目&nbsp;
                    </td>
                    <td align="left">
                        <asp:CheckBox ID="ckbCommon" runat="server" onClick="changestatus(this)" /><%--&nbsp;&nbsp;
                        <span>是否激活:</span>&nbsp;<span><asp:CheckBox ID="IsActive" runat="server" /></span>
                    </td>
                </tr>--%>
                <tr >
                <td align="right" width="15%">试题学科专业&nbsp;</td>
                    <td align="left"><asp:DropDownList ID="drpTestSpeciality" runat="server">
                                <asp:ListItem Text="请选择试题专业" Value="-1"></asp:ListItem>
                            </asp:DropDownList></td>
                           <td align="right"><%--亚专业&nbsp;--%></td>
                            <td align="left"><%--<asp:TextBox ID="txtSubSpeciality" runat="server" Height="20px" MaxLength="5"></asp:TextBox>--%></td>
                </tr>
                <tr class="ARow">
                    <td align="right">
                        申报正高&nbsp;
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="drpLevel" runat="server" onchange="Onchange(this.value,'drpLeveLA')">
                        </asp:DropDownList>
                    </td>
                    <td  align="right" width="100px">
                        申报副高&nbsp;
                    </td>
                    <td align="left" width="500px">
                        <asp:DropDownList ID="drpLeveLA" runat="server" onchange="Onchange(this.value,'drpLevel')">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    
                    <td align="right">试题题干&nbsp;</td>
                    <td align="left" colspan="3">
                    <div style="padding-top:2px;padding-bottom:2px; text-align:right; padding-right:20px;"><asp:Button ID="Button1" runat="server" Text="保存" 
                            onclick="butSave_Click"  />&nbsp;&nbsp;<input id="Button2" type="button" value="返回" onclick="history.go(-1);"/></div>
                    <FCKeditorV2:FCKeditor ID="txtQuestions" runat="server" Height="250"></FCKeditorV2:FCKeditor> 
                    </td>
                </tr>
                <tr  class="ARow">
                    <td align="right">
                        试题答案&nbsp;
                    </td>
                    <td align="left" colspan="3">
                    <FCKeditorV2:FCKeditor ID="QuestionAnswer" runat="server" Height="300">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" align="center"><asp:Button ID="butSave" runat="server" Text="保存" 
                            onclick="butSave_Click"  />&nbsp;&nbsp;<input id="butBack" type="button" value="返回" onclick="history.go(-1);"/></td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
